/**
 * 
 */
package com.srv.persistence;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import com.srv.model.Resource;
/**
 * @author Administrator
 *
 */
public interface IResourcePersistence {
	/**
	 * 保存资源对象.
	 * @param resource 
	 * @see com.srv.model.Resource
	 */
	public ArrayList<String> save(
			Resource resource	   		   
	) throws com.srv.persistence.PersistenceException;
	
	/**
	 * 获取资源对象.
	 * @return Resource 
	 * @see com.srv.model.Resource
	 */
	public Resource getResource(
			String resourceID,
			String resourceName
	) throws com.srv.persistence.PersistenceException;
	/**
	 * 移除资源
	 * @param urlList
	 * @throws IOException
	 * @throws com.srv.persistence.PersistenceException
	 */
    public void remove(List<String> urlList)throws com.srv.persistence.PersistenceException;
	
	
}
